<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page contentType="text/html;charset=utf-8"%>
<%@ include file="header_teacher.jsp"%>
<!-- 以上为页头 设置head 引用样式相关信息 请勿修改  请直接修改header.jsp文件  by 小灯笼 -->

<!-- 1.科研训练信息 -->

<!-- 以下为正文 -->


<link rel="stylesheet" type="text/css" href="css/jquery-ui.min.css">
<link rel="stylesheet" type="text/css" href="css/jquery-ui.theme.min.css">

<script src="js/jquery-ui.min.js"></script>

<script type="text/javascript">
$(function(){
	//初始化
	$("#startTime").datepicker();
	$("#startTime").datepicker( "option", "dateFormat", "yy-mm-dd" );
	$("#endTime").datepicker();
	$("#endTime").datepicker( "option", "dateFormat", "yy-mm-dd" );
	$("#fee_error").hide();
});

$(document).ready(function(){
	//经费为数值型参数
	$("#fee").keyup(function(){
		if(isNaN($("#fee").val()))
			$("#fee_error").show();
		else
			$("#fee_error").hide();
	});
	
});
//-->
</script>
<div class="left-sidebar">
            <div class="row-fluid">
              <div class="span12">
                <div class="widget">
                  <div class="widget-header">
                    <div class="title">
                      	1.科研项目
                      <span class="mini-title">
                        	1
                      </span>
                    </div>
                    <span class="tools">
                      <a class="fs1" aria-hidden="true" data-icon="" data-original-title=""></a>
                    </span>
                  </div>
                  <div class="widget-body">
                    
                    <form class="form-horizontal no-margin" action="submit_repoj" method="post">
                      <div class="control-group">
                        <label class="control-label" for="RName" >
                          	项目名称
                        </label>
                        <div class="controls controls-row">
                          <input class="span3" type="text" id="RName" name="RName" placeholder="项目名称" required>
                        </div>
                      </div>
                      <div class="control-group">
                        <label class="control-label" for="RSerial">
                          	项目编号
                        </label>
                        <div class="controls">
                          <input type="text" name="RSerial" id="RSerial" class="span6" placeholder="项目编号" required>
                        </div>
                      </div>
                          <div class="control-group">
                        <label class="control-label" for="RSource">
                          	项目来源
                        </label>
                        <div class="controls">
                          <input type="text" name="RSource" id="RSource" class="span6" placeholder="项目来源" required>
                        </div>
                      </div>        
                      <div class="control-group">
                        <label class="control-label" for="startTime">
                          	开始时间
                        </label>
                        <div class="controls">
                          <input type="text" name="startTime" id="startTime" class="span3" placeholder="开始时间" required>
                        </div>
                      </div>
                      <div class="control-group">
                        <label class="control-label" for="endTime">
                          	结束时间
                        </label>
                        <div class="controls">
                          <input type="text" name="endTime" id="endTime" class="span3" placeholder="结束时间" required>
                        </div>
                      </div>
                      <div class="control-group">
                        <label class="control-label" for="person">
                          	承担人
                        </label>
                        <div class="controls">
                          <input type="text" name="person" id="person" class="span6" placeholder="承担人" required>
                        </div>
                      </div>              
                      <div class="control-group">
                        <label class="control-label" for="fee">
                          	经费
                        </label>
                        <div class="controls">
                          <input type="text" name="fee" id="fee" class="span6" placeholder="经费" required>
                          <span id="fee_error" class="badge badge-important" style="display:none">
                      			经费应当是数值
                    	  </span>
                        </div>
                      </div>              
                      <div class="form-actions no-margin">
                        <button type="submit" class="btn btn-info pull-right">
                          	发布
                        </button>
                        <div class="clearfix">
                        </div>
                      </div>
                      
                    </form>
                    
                  </div>
                </div>
              </div>
            </div>
          </div>

<!-- 以上为正文 -->

<!-- 以下为页脚 及JS相关 请勿修改 请直接修改footer.jsp文件   by 小灯笼 -->
<jsp:include page="footer.jsp" />